<div class="g12 nodrop" style="margin-bottom: 43px;">

    <h1> <? if (isset($recipeofday)) {echo 'Ažuriranje recepta dana'; } else echo 'Novi recept dana' ?> </h1>

    <p style="line-height: 13px;">
                                              
        RECEPT DAN-A

    </p>


    <!--FORM IMAGE-->    
    <div style="width: 100%;">

        <div id="srvrserror-3"></div>

        <button id="dialog_confirm" style="display: none;">Confirm Dialog (confirm)</button>
        
        <form action="javascript:" method="post" autocomplete="off" data-confirm-send="false" id="frm_recipeofday">

            <fieldset>

                <section><label for="input">Autor</label>
                    <div><input type="text" id="author" name="author" required value="<? if (isset($recipeofday)) echo $recipeofday[0]['author']; ?>"></div>
                </section>

                 <section><label for="input">Tekst</label>
                    <div><input type="text" id="text" name="text" required value="<? if (isset($recipeofday)) echo $recipeofday[0]['text']; ?>"></div>
                </section>
                 
                <section><label for="input">Datum</label>
                    <div>

                        <div id="cal">

                            <div class="boxdatum">

                                <div id="datumkomponenta1">

                                    <div class="gifloader"></div>

                                </div>

                            </div>

                        </div> 

                        <div id="srvrserror-4"></div>

                    </div>
                </section>

                <section>
                    <button class="submit small" onclick="return false;"><? if (isset($recipeofday[0]['author'])) {echo 'Ažuriraj recept dana'; }else echo 'Kreiraj recept dana'; ?></button>
                </section> 

            </fieldset>

        </form>

    </div>


</div>

<!-- VARIABLES TO edit_new_img.js -->
<script type="text/javascript">
    var appmode;
    var get_id;
    <?  if (isset($_GET['id'])){ ?> 
        appmode = 'edit';
        datetime = '<? echo $recipeofday[0]['datetime']?>'; 
        get_id = '<?=$_GET['id']?>';

        <?}else{?> 
        appmode = 'insert'; 
        get_id = -1;
        <? } ?>
</script>
<style>
    #uniform-directory span{
        width: 17em;
    }
</style>